local sk__diaodu_active = fk.CreateSkill {

  name = "sk__diaodu_active",

  tags = {},

}



sk__diaodu_active:addEffect("active", {
  name = "sk__diaodu_active",
  card_num = 0,
  target_num = 2,
  interaction = function()
    return UI.ComboBox { choices = { "sk__diaodu_hand", "sk__diaodu_equip" } }
  end,
  card_filter = Util.FalseFunc,
  target_filter = function(self, player, to_select, selected, selected_cards)
    if #selected == 0 then
      return true
    elseif #selected == 1 then
      local target1 = selected[1]
      local target2 = to_select
      if self.interaction.data == "sk__diaodu_hand" then
        return not (target1:isKongcheng() and target2:isKongcheng())
      elseif self.interaction.data == "sk__diaodu_equip" then
        return not (#target1:getCardIds("e") == 0 and #target2:getCardIds("e") == 0)
      end
    end
  end,
})

return sk__diaodu_active
